package com.llg.model.code;

public enum ComputeCode implements ResultCode {
    CODE1(false,13001,"未选择型号"),
    CODE2(false,13002,"不存在该型号"),
    CODE3(false,13003,"计算方式不合法"),
    CODE4(false,13004,"面积输入不合法"),
    CODE5(false,13005,"宽输入不合法"),
    CODE6(false,13006,"高输入不合法");

    private boolean success;
    private int code;
    private String message;

    ComputeCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
